<extend name="Public:innerbase" />



<block name="js">



<script src="{:RES}/js/date/WdatePicker.js"></script>



</block>



<block name="content">



<div class="container-fluid">



	<ul class="nav nav-tabs wm-tabs">



		<li class="active"><a href="javascript:void(0)">会员管理</a></li>

<!-- 

		 <li><a href="{:U('Member/adduser')}">添加会员</a></li> -->



	</ul>



	<div class="page-header wm-page-header">



	 	<form method="get" action="__SELF__" class="form-inline">



		



		<label>WechatID</label>



		<input name="wechatid" type="text" value="{$_GET['wechatid']}" class="form-control" />






		<button class="btn btn-primary" type="submit">



			<span class="glyphicon glyphicon-search"></span>



			查询



		</button>



		</form> 



	</div>

<script>
			function sub(id,star=0){
				$("#star").get(0).selectedIndex = star;
				$("input[name='orderid']").val(id);
			}
		</script>


	<TABLE class="table wm-table-bordered table-striped table-hover">
		<THEAD>
			<TR>
				<TH>WechatID</TH>
				<TH>头像</TH>
				<TH>微信昵称</TH>
				<TH>关注时间</TH>
				<TH>粉丝人数</TH>
				<TH>剩余积分</TH>
			</TR>
		</THEAD>
		<TBODY>
		<volist id="list" name="list">
		<TR>
			<TD>{$list.open_id}</TD>
			<TD><img style='width:50px;height:50px;' src='{$list.headimgurl}'/></TD>
			<TD>{$list.wechat_name}</TD>
			<TD><php>echo date('Y-m-d H:i:s',$list['subscribe_time']);</php></TD>
			<TD>{$list['fanscount']}</TD>
			<TD>{$list['integral']}</TD>
		</form>
		</TR>
		</volist>



	  </TBODY>



	</TABLE>



	<div>{$page}</div>



</div>
<div class="modal fade"  id="modal">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
						<h4 class="modal-title">更改用户身份</h4>
					</div>
					<div class="modal-body">
						<form id="form" class="form" method="post" action="{:U('change')}">
							<input type="hidden" name="orderid"  />
							
							<div class="form-group">
								<label for="score">会员等级</label>
								<select  name="star" id='star' class="form-control">
									<option  value="0" >免费会员</option>
									<option  value="1">团队领导人</option>
								</select>

							</div>
							<button type="submit" class="btn btn-primary">确定</button>
						</form>
					</div>
				</div><!-- /.modal-content -->
			</div><!-- /.modal-dialog -->
		</div><!-- /.modal -->



</block>